<?php
require_once 'Zend/Log.php';

abstract class Kornak_Http_Crawler_Plugin_Abstract
{
    protected $_crawler;
    protected $_url;
    protected $_response;

    public function __construct(Kornak_Http_Crawler_Abstract $crawler)
    {
        $this->_crawler = $crawler;
    }

    abstract public function getData();

    public function log($message, $level = Zend_Log::INFO)
    {
        $this->_crawler->log($message, $level);
    }

    public function setResponse(Zend_Http_Response $response)
    {
        $this->_response = $response;
    }

    public function setUrl($url)
    {
        $this->_url = $url;
    }
}